package cn.legend.travel.admin.authorize.dao.persist.repository.impl;

import cn.legend.travel.admin.authorize.dao.persist.mapper.BackendApiMapper;
import cn.legend.travel.admin.authorize.dao.persist.repository.IBackendApiRepository;
import cn.legend.travel.admin.authorize.pojo.vo.BackendApiStandardVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class BackendApiRepositoryImpl implements IBackendApiRepository {
    private final BackendApiMapper mapper;

    @Override
    public BackendApiStandardVO getById(Long apiId) {
        return mapper.getById(apiId);
    }

    @Override
    public List<BackendApiStandardVO> getList() {
        return mapper.getList();
    }
}
